package com.dhc.redpacket.service;

public interface UserRedPacketService {
	/**
	 * 保存抢红包信息
	 *
	 * @param redPacketId 红包id
	 * @param userId      抢红包用户id
	 * @return 影响记录数
	 */
	public int grapRedPacket(Long redPacketId, Long userId) throws Exception;

	/**
	 * 保存抢红包，乐观锁
	 * 
	 * @param redPacketId
	 * @param userId
	 * @return
	 * @throws Exception
	 */
	public int grapRedPacketForVersion(Long redPacketId, Long userId) throws Exception;
}
